import service from "../index";

export const getAllHomeType = async () => {
  return await service({
    method: "get",
    url: "/homestay/getAllHomeType",
  });
};

export const addHomeType = async (params: any) => {
  return await service({
    method: "post",
    url: "/homestay/addHomeType",
    data: params,
  });
};

export const deleteHomeType = async (id: number) => {
  return await service({
    method: "get",
    url: "/homestay/deleteHomeType?id=" + id,
  });
};

export const batchDeleteHomeType = async (params: any) => {
  return await service({
    method: "post",
    url: "/homestay/batchDeleteHomeType",
    data: params,
  });
};

export const updateHomeType = async (params: any) => {
  return await service({
    method: "post",
    url: "/homestay/updateHomeType",
    data: params,
  });
};
